There is a minor mode for
manipulating widgets in major modes that don't provide any
support for widgets themselves. This is mostly intended to be
useful for programmers doing experiments.
— Command: widget-minor-mode
Toggle minor mode for traversing widgets. With arg, turn
widget mode on if and only if arg is positive.